.class Lcom/waiqin365/lightapp/visit/hs;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/visit/b/bt;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/VisitSearchActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/hs;->a:Lcom/waiqin365/lightapp/visit/VisitSearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(I)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hs;->a:Lcom/waiqin365/lightapp/visit/VisitSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/View;->getLocalVisibleRect(Landroid/graphics/Rect;)Z

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    iget v1, v1, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v0, v1

    if-lez v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/hs;->a:Lcom/waiqin365/lightapp/visit/VisitSearchActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;->c(Lcom/waiqin365/lightapp/visit/VisitSearchActivity;)Landroid/widget/ListView;

    move-result-object v1

    const/16 v2, 0x1f4

    invoke-virtual {v1, v0, v2}, Landroid/widget/ListView;->smoothScrollBy(II)V

    :cond_0
    return-void
.end method
